package org.example.codeservce.api;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.util.concurrent.Callable;

/**
 * author: Li Qing
 * date: 2024/5/10 16:08
 * description:
 */

public class TongYiCannel implements Callable<String>
{
    private String prompt;


    public String getPrompt()
    {
        return prompt;
    }

    public void setPrompt(String prompt)
    {
        this.prompt = prompt;
    }

    @Override
    public String call() throws Exception
    {
        return TongYiUtil.inquire(prompt);
    }
}
